import os
import time
from concurrent.futures import ThreadPoolExecutor


def func(num):
    time.sleep(0.5)
    print(num)
    return num * num

minfree = [14746, 18432, 22118, 25805, 40000, 55000]
line_data = [x * 4 for x in minfree]
print(line_data)
print(os.cpu_count())
t = ThreadPoolExecutor(5)
lst = []
for r in t.map(func, range(10)):
    print('>' + str(r))
t.shutdown()
print('主线程')
